Page({
  data: {
    xian: true,
    yin: false,
	timeData:[
		{
			date:"2020-10-30",
			money:200,
			sen:"avtiv"
			
		},
		{
			date:"2020-10-31",
			money:195,
			sen:"avtiv"
		},
		{
			date:"2020-11-01",
			money:195,
			sen:"avtiv"
		}
	]
  },
  /**
    * 生命周期函数--监听页面初次渲染完成
    */
    onReady: function () {
      // 获取日历组件
      this.dateSelect = this.selectComponent('#dateSelect')
      this.dateSelect.getMonth()
      
    },
   
  // 日期点击
    _dayClick:function(e){
		console.log('武汉'+JSON.stringify(e.detail.calendarDate))
      this.setData({
        calendarDate: e.detail.calendarDate,
        calendarMoney: e.detail.calendarMoney,
        calendarMonth: e.detail.calendarMonth,
        calendarDay: e.detail.calendarDay,
      })
	  
	  console.log('日期'+this.data.calendarDate)
	  console.log('金额'+this.data.calendarMoney)
	  console.log('月份'+this.data.calendarMonth)
	   console.log('天'+this.data.calendarDay)
    },
	
	//显示价格日历控件
	//显示对话框
	showModals: function() {
		
		// 显示遮罩层
		var animation = wx.createAnimation({
			duration: 200,
			timingFunction: "linear",
			delay: 0
		})
		this.animation = animation
		animation.translateY(300).step()
		this.setData({
			animationDataS: animation.export(),
			showModalStatuss: true
		})
		setTimeout(function() {
			animation.translateY(0).step()
			this.setData({
				animationDataS: animation.export()
			})
		}.bind(this), 200)
	},
	
	//隐藏价格日历对话框
	hideModals: function() {
		
		// 隐藏遮罩层
		var animation = wx.createAnimation({
			duration: 200,
			timingFunction: "linear",
			delay: 0
		})
		this.animation = animation
		animation.translateY(300).step()
		this.setData({
			animationDataS: animation.export(),
		})
		setTimeout(function() {
			animation.translateY(0).step()
			this.setData({
				animationDataS: animation.export(),
				showModalStatuss: false
			})
		}.bind(this), 200)
	},
});